function setCookie(k, v, t) {
    var oDate = new Date();
    oDate.setDate(oDate.getDate() + t);
    document.cookie = `${k}=${v};expires=` + oDate;
}

function getCookie(k) {
    var arr = document.cookie.split("; ");
    for (var i = 0; i < arr.length; i++) {
        var arr1 = arr[i].split("=");
        if (arr1[0] === k) {
            return arr1[1];
        }
    }

}

function removeCookie(name) {

    setCookie(name, 1, -1);

}